package parse

import (
	"regexp"
	"strings"
)
import "github.com/Lofanmi/pinyin-golang/pinyin"

var dict = pinyin.NewDict()
var compile, _ = regexp.Compile(`\b\w`)

func GetFirstLetter(wanted, sep string) string {
	all := compile.FindAllString(dict.Name(wanted, ",").None(), -1)
	return strings.Join(all, sep)
}
